From 4ade5ab311b4ecf7d54b0345b097efb8aacef5f5 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 19 Apr 2004 19:05:26 +0000 Subject: [PATCH] Fix floating point math to make diff/terr usable floats. --- gpsbabel/csv_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index af1396d68..3f577afec 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -795,11 +795,11 @@ xcsv_waypt_pr(const waypoint *wpt) /* GEOCACHE STUFF **************************************************/ if (strcmp(fmp->key, "GEOCACHE_DIFF") == 0) { /* Geocache Difficulty as a double */ - sprintf(buff, fmp->printfc, wpt->gc_data.diff / 10); + sprintf(buff, fmp->printfc, wpt->gc_data.diff / 10.0); } else if (strcmp(fmp->key, "GEOCACHE_TERR") == 0) { /* Geocache Terrain as a double */ - sprintf(buff, fmp->printfc, wpt->gc_data.terr / 10); + sprintf(buff, fmp->printfc, wpt->gc_data.terr / 10.0); } else if (strcmp(fmp->key, "GEOCACHE_TYPE") == 0) { /* Geocache Type TODO */ -- 2.30.2